package com.ruoyi.wechat.api;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.wechat.service.IAppointmentService;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;


@RestController
@RequestMapping("/wechat/infonumber")
@Slf4j
public class WxInfoNumberController {

    @Autowired
    IAppointmentService appointmentService;

//    @GetMapping("/listInfoNumber")
//    public AjaxResult listInfoNumber(){
//        List<Integer> list = appointmentService.listInfoNumber();
//        List<BigDecimal> appointmentServiceSaleMoney = appointmentService.getSaleMoney();
//        Collections.reverse(appointmentServiceSaleMoney);
//        List<List> objects = new ArrayList<>();
//        objects.add(list);
//        objects.add(appointmentServiceSaleMoney);
//        return  new AjaxResult(200,"获取成功",objects);
//    }
}
